#ifndef REALTIMEFORM_H
#define REALTIMEFORM_H

#include <QWidget>
#include <QTimer>

namespace Ui {
class RealTimeForm;
}

class RealTimeForm : public QWidget
{
    Q_OBJECT

signals:
    void signalGainTemp(QString msg);
    void signalGainHumi(QString msg);
    void signalGainTips(QString msg);

public slots:
    void slotparseDevTemp(QString data);
    void slotparseDevHumi(QString data);
    void slotparseDevMode(QString data);

public:
    explicit RealTimeForm(QWidget *parent = 0);
    ~RealTimeForm();


private slots:
    void slotTimeOutTemp(void);
    void slotTimeOutHumi(void);
    void slotTimeOutTips(void);

    void on_pb_startTempTIM_clicked();
    void on_pb_startHumiTIM_clicked();
    void on_pb_startTipsTIM_clicked();

private:
    Ui::RealTimeForm *ui;

    QTimer *m_tempTimer;
    QTimer *m_humiTimer;
    QTimer *m_tipsTimer;
};

#endif // REALTIMEFORM_H
